import { computed } from 'vue';
import { type ProFormConfigItem } from '../types';

export const useForm = <T extends object>(cb: () => Array<ProFormConfigItem<T>>) => {
  const formConfig = computed(cb);
  return {
    formConfig,
  };
};
